package com.myk.game.gobangchess.signs;

import com.myk.game.gobangchess.Sign;

/**
 * 角标标记
 */
public class BadgeSign extends Sign {

    private final int index;
    private final String value;
    private final int position; //格子的边角中心共9个点，从上到下从左到右数，从0开始来表示
    private final String teColor;
    private final String bgColor;

    public BadgeSign(int index, String value, int position, String teColor, String bgColor) {
        this.index = index;
        this.value = value;
        this.position = position;
        this.teColor = teColor;
        this.bgColor = bgColor;
    }

    @Override
    public String getSignInfo() {
        return type + "," + index + "," + value + "," + position + "," + teColor + "," + bgColor;
    }
}
